package com.san.hkhospital.mapper;

import com.san.hkhospital.entity.UserRole;
import com.san.hkhospital.entity.UserRoleExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * ClassName:UserRoleMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface UserRoleMapper {
    long countByExample(UserRoleExample example);

    int deleteByExample(UserRoleExample example);

    int deleteByPrimaryKey(@Param("sysuserId") Integer sysuserId, @Param("roleId") Integer roleId);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    List<UserRole> selectByExample(UserRoleExample example);

    int updateByExampleSelective(@Param("record") UserRole record, @Param("example") UserRoleExample example);

    int updateByExample(@Param("record") UserRole record, @Param("example") UserRoleExample example);
}